home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Precision Software Appli…tions Silver Collection 1
/
Precision Software Applications Silver Collection Volume One (PSM) (1993).iso
/
windows
/
games
/
wintlics.arj
/
DUPICN.EXE
/
DUPICON.DOC
< prev
next >
Wrap
Text File
|
1991-06-24
|
2KB
|
60 lines
Duplicate Icon Processor
Copyright (c) 1991 by Keith Ledbetter
DUPICON is a program that will go through a directory and find all
exact matches of icon files. I wrote this program because my Icon
collection has grown to approximately 1800 icons, and trying to weed out
all of the duplicates by hand is quite tedious.
The program was a "quickie", so I'll say up front that you are not
going to be overwhelmed by beautiful screen displays <grin>, but it is
functional and has been exhaustively tested.
DUPICON works only on THE CURRENT DEFAULT DIRECTORY, and can handle
up to 3,192 icons in this version (someone tell me if they need for it
to handle more). So, what you want to do is to get all of your .ICO
files into one directory. If you have my "Supersonic Search Tool"
program, you can easily accomplish this with these commands:
C:> md c:\icons
C:> sst *.ico -d -c"copy &f c:\icons\*.*"
Next, simply change to that directory and execute DUPICON. The program
will first ask you if you only want to preview the duplicates. If you
answer "Yes", DUPICON will do its normal processing except that it WILL NOT
delete the duplicate icons -- it will only show their names to you. If you
answer "No", then DUPICON will go into its "search and delete" logic -- you
will also be asked whether you want to be prompted or not before an Icon
file is deleted.
How it works
------------
DUPICON first scans the current directory and builds a table of all
.ICO files found. Next, it reads each .ICO file and calculates a 16-bit
CRC of each file. Lastly, it goes through all .ICO files where the CRC
matches and does an exact BYTE-for-BYTE compare to make sure that the two
icons are exact matches. If they are, you will be prompted to delete the
second duplicate icon (if you asked DUPICON to prompt you).
That's All!
-----------
This program is a freebie, so use it and pass it to your friends as you
see fit. If you need to contact me, I can be reached at the following:
Electronic mail on GEnie : ORION.MICRO
CompuServe: 72240,1221